package com.ruoyi.workflow;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.toolkit.SimpleQuery;
import com.ruoyi.flowable.utils.TaskUtils;
import com.ruoyi.system.domain.SysUserRole;
import org.junit.Test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class test {
    @Test
    public void test(){
        String userId = TaskUtils.getUserId();
//        List<String> list = TaskUtils.getCandidateGroup();
        System.out.println(userId);
//        System.out.println(list);
    }

    @Test
    public void test2(){
        List<String> candidateGroups = Arrays.asList("ROLE43","ROLE3");
        List<Long> groups = candidateGroups.stream()
            .map(item -> Long.parseLong(item.substring(4)))
            .collect(Collectors.toList());
        System.out.println(groups);

    }
}
